package com.mo.axion.handler.flowcontrol.annotations;

import com.mo.axion.common.enums.RateLimitStrategy;
import org.springframework.stereotype.Service;

import java.lang.annotation.*;
/**
 * @author Mo
 * @createTime 2024/4/12 13:21
 * @description 限流注解
 */
@Target({ElementType.TYPE})
@Retention(RetentionPolicy.RUNTIME)
@Documented
@Service
public @interface LocalRateLimit {
    RateLimitStrategy rateLimitStrategy() default RateLimitStrategy.REQUEST_RATE_LIMIT;
}
